package com.woniuxy.business.config;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class SqlProducer {
    @Resource
    private AmqpTemplate amqpTemplate;
    //发送消息
    public void send(String idString){
        amqpTemplate.convertAndSend("sql_exchange","sql",idString);
    }
}